<template>
<div class="bh-card">
	<div class="bh-card__header">
		<slot name='header'></slot>
	</div>
	<div class="bh-card__body">
		<slot></slot>
	</div>
</div>
</template>

<script>
export default {
	name: 'bh-card',
	props: {
		type: {
			type: String,
			default: 'info',
		},
		title: {
			type: String,
			default: '',
		},
		closable: {
			type: Boolean,
			default: true,
		},
	},
	data() {
		return {
			visible: true,
		}
	},
	methods: {
		close() {
			this.visible = false;
			this.$emit('close');
		},
	},
	computed: {
		typeClass() {
			return `bh-alert-${ this.type }`;
		},
	},
}
</script>
